package com.xgsm.fastdfsdemo;

import com.github.tobato.fastdfs.FdfsClientConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//使用swagger接口文档
@EnableSwagger2
//mybtaisPlus
@MapperScan("com.xgsm.fastdfsdemo.mapper")
//加载fastDFS
@EnableMBeanExport(registration= RegistrationPolicy.IGNORE_EXISTING)
@Import(FdfsClientConfig.class)
public class FastDfsDemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(FastDfsDemoApplication.class, args);
    }

}
